<template>
  <!--首页链接-->
  <ul class="web-home-links clearfix">
    <li v-for="v in models" :key="v.url" class="item">
      <a :href="v.link" class="w-hover-text" target="_blank">{{ v.title }}</a>
    </li>
  </ul>
</template>

<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator'
import HomeLink from '@/models/homeLink'

@Component({
  name: 'ComWebHomelinks'
})
export default class ComWebHomelinks extends Vue {
  @Prop({ default: () => [] }) models!: Array<HomeLink>
}
</script>

<style lang="less" scoped>
.web-home-links {
  list-style: none;
  padding: 0;
  margin: 0;
  > .item {
    float: left;
    padding: 5px 10px;
    a {
      color: #999;
      font-size: 26px;
      line-height: 38px;
    }
    .hover-text:hover {
      color: #333;
    }
  }
}
</style>
